<?php

use \GatewayWorker\Lib\Gateway;
class Cache
{
    public function riders_cache($client_id,$data)
    {
        $rider=Gateway::getSession($client_id);
        $cache_name="rider_{$rider['id']}_location";
        $session_data=Tool::ObjectToArray($data);
        Gateway::setSession($cache_name,$session_data);
    }
}
